package com.supertange.miniapp.wepet.modules.wepet.service;

import com.supertange.miniapp.wepet.modules.wepet.entity.TopicAnswerEntity;
import com.supertange.miniapp.wepet.modules.wepet.entity.TopicEntity;
import com.supertange.miniapp.wepet.modules.wepet.entity.vo.*;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface TopicService {

    List<TopicVO> queryTopicAll();

    List<TopicVO> queryTopicRefresh();

    List<TopicVO> queryTopicById(String userid);

    TopicVO queryTopicByTopicid(String topicid);

    List<TopicEnterReturnVO> queryAllTopicAnswerById(String topicId);

    List<TopicUserAnswerVO> queryUserAnswerByUserid(String userid);

    List<TopicAnswerUserVO> queryAnswerUserByUserid(String userid);

    String addTopic(String userid,String title,String content,int piclen);

    boolean addPic(MultipartFile file,String topicid,int index);

    boolean addTopicAnswer(String userId,String topicId,String comment);

    boolean addTopicComment(String userId,int commentId,int type,String comment,String answerid,String commentUsername);

    void addTopicFavourate(String topicid);

    void subTopicFavourate(String topicid);

    void addTopicAnswerFavourate(String answerid);

}
